class TakeComment extends React.Component {
    content = React.createRef()
    //添加评论
    add = async ()=>{
        await this.$http.post('/weibo',{content:this.content.current.value})
        this.content.current.value = ''
        this.props.getCommon()
    }
  render() {
    return (
        <div className="takeComment">
            <textarea ref={this.content} name="textarea" className="takeTextField" id="tijiaoText"></textarea>
            <div className="takeSbmComment">
                <input onClick={this.add} type="button" className="inputs" value=""/>
            </div>
        </div>
    )
  }
}
